package weathercase;

import weathercase.observer.CurrentConditionsDisplay;
import weathercase.observer.CurrentHumidityDisplay;
import weathercase.observer.CurrentPressureDisplay;
import weathercase.subject.Subject;
import weathercase.subject.WeatherDataSubject;

/**
 * description:
 *  气象观察站
 * @author yuanmenglv on 2019/11/25
 */
public class Client {
    public static void main(String[] args) {
        Subject weatherData = new WeatherDataSubject(3);
        CurrentConditionsDisplay currentConditionsDisplay = new CurrentConditionsDisplay(weatherData);
        CurrentHumidityDisplay currentHumidityDisplay = new CurrentHumidityDisplay(weatherData);
        CurrentPressureDisplay currentPressureDisplay = new CurrentPressureDisplay(weatherData);



        ((WeatherDataSubject) weatherData).setMeasurements(3.00f, 89.23f, 56.0f);
    }
}
